/*
 * Copyright (c) 2015 sb Jung.
 * All right reserved.
 */
package kr.co.j2b.api.sample.dao;

import java.util.List;
import java.util.Map;

import kr.co.j2b.common.MyBatisAbstractSqlSession;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Repository;
/**
 * <pre>
 * kr.co.j2b.api.sample.dao 
 *    |_ SampleDaoImpl.java
 * </pre>
 * @date : 2015. 4. 7. 오후 1:42:43
 * @author : J-PC
 */

@Repository
public class SampleDaoImpl extends MyBatisAbstractSqlSession implements SampleDao{
	private Log log = LogFactory.getLog(getClass());
	public static String NAMESPACE = "sample.angular.";
	
	public List<Map<String, Object>> getCountries(){
		return sqlSession.selectList(NAMESPACE + "selectList");
	}
	
	public Map<String, Object> getCountriesDetail(String id){
		return sqlSession.selectOne(NAMESPACE + "selectDetail", id);
	}
}
